package com.qtenv.datasync.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
    * 分区水平衡修正
    * </p>
 *
 * @author CBL
 * @since 2022-08-12
 */
@Data
@TableName("dm_balance_fix")
@ApiModel(value = "BalanceFix对象", description = "分区水平衡修正")
public class BalanceFix implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("平台表单自增主键")
    @TableId("ID")
    private Integer id;

    @ApiModelProperty("租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @ApiModelProperty("分区编号")
    @TableField("AreaID")
    private String areaID;

    @ApiModelProperty("分区名称")
    @TableField("AreaName")
    private String areaName;

    @ApiModelProperty("账期 格式：2022-03")
    @TableField("paydate")
    private String paydate;

    @ApiModelProperty("自产供水量")
    @TableField("selfflow")
    private BigDecimal selfflow;

    @ApiModelProperty("外购供水量")
    @TableField("buyflow")
    private BigDecimal buyflow;

    @ApiModelProperty("供水总量-由上述两项水量组成")
    @TableField("totalflow")
    private BigDecimal totalflow;

    @ApiModelProperty("计费计量用水量")
    @TableField("chargeflow_jl")
    private BigDecimal chargeflowJl;

    @ApiModelProperty("计费未计量用水量")
    @TableField("chargeflow_wjl")
    private BigDecimal chargeflowWjl;

    @ApiModelProperty("免费计量用水量")
    @TableField("freeflow_jl")
    private BigDecimal freeflowJl;

    @ApiModelProperty("免费未计量用水量")
    @TableField("freeflow_wjl")
    private BigDecimal freeflowWjl;

    @ApiModelProperty("注册用户用水量-由上述四项水量组成")
    @TableField("userflow")
    private BigDecimal userflow;

    @ApiModelProperty("明漏水量")
    @TableField("mleakage")
    private BigDecimal mleakage;

    @ApiModelProperty("暗漏水量")
    @TableField("aleakage")
    private BigDecimal aleakage;

    @ApiModelProperty("背景漏损水量")
    @TableField("backleakage")
    private BigDecimal backleakage;

    @ApiModelProperty("水箱、水池的渗漏和流溢水量")
    @TableField("sleakage")
    private BigDecimal sleakage;

    @ApiModelProperty("漏失水量-由上述四项漏失水量组成")
    @TableField("totalleakage1")
    private BigDecimal totalleakage1;

    @ApiModelProperty("居民用户总分表差损失水量")
    @TableField("jleakage")
    private BigDecimal jleakage;

    @ApiModelProperty("非居民用户表具误差损失水量")
    @TableField("fleakage")
    private BigDecimal fleakage;

    @ApiModelProperty("计量损失水量")
    @TableField("cleakage")
    private BigDecimal cleakage;

    @ApiModelProperty("未注册用户用水和用户拒查等管理因素导致的损失水量")
    @TableField("wleakage")
    private BigDecimal wleakage;

    @ApiModelProperty("漏损水量-由上述四项漏损水量组成")
    @TableField("totalleakage2")
    private BigDecimal totalleakage2;

    @ApiModelProperty("居民抄表到户水量")
    @TableField("homeuser_flow")
    private BigDecimal homeuserFlow;

    @ApiModelProperty("最大冻土深度")
    @TableField("depth")
    private String depth;

    @ApiModelProperty("漏损率")
    @TableField("lxl")
    private BigDecimal lxl;

    @ApiModelProperty("漏失率")
    @TableField("lsl")
    private BigDecimal lsl;

    @ApiModelProperty("居民抄表到户水量修正值")
    @TableField("update_homeuser")
    private String updateHomeuser;

    @ApiModelProperty("单位供水量管长修正值")
    @TableField("update_business")
    private String updateBusiness;

    @ApiModelProperty("年平均出厂压力修正值")
    @TableField("update_year")
    private String updateYear;

    @ApiModelProperty("最大冻土深度修正值")
    @TableField("update_depth")
    private String updateDepth;

    @ApiModelProperty("修正漏损率")
    @TableField("update_lsl")
    private BigDecimal updateLsl;

    @ApiModelProperty("水表误差")
    @TableField("MeterError")
    private BigDecimal meterError;

    @ApiModelProperty("表观漏损")
    @TableField("SurfaceLeakage")
    private BigDecimal surfaceLeakage;

    @ApiModelProperty("可控漏损")
    @TableField("ControlledLeakage")
    private BigDecimal controlledLeakage;

    @ApiModelProperty("实际漏损")
    @TableField("ActualLeakage")
    private BigDecimal actualLeakage;

    @ApiModelProperty("未许可用水量")
    @TableField("NotAllowFlow")
    private BigDecimal notAllowFlow;
}